home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compute! Gazette 1984 June
/
1984-06.d64
/
revenge cyon_64
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
3KB
|
97 lines
100 co=54272:fort=cotoco+24:poket,0:next
110 poke53280,0:poke53281,1:v$=" seconds"
120 print"[147]"tab(12)"revenge of cyon[146]"
130 print""tab(11)"(use joystick #2)"
140 print"what skill level (1-6)?"
150 geta$:ifa$<"1"ora$>"6"then150
160 d=val(a$):sc=1024
170 pokeco+24,15:pokeco+5,17:pokeco+6,248:pokeco,100
180 bg=1
190 poke53281,1:print"[147]":poke53281,0:print"[159]"bg:ti$="000000"
200 lk=int(rnd(1)*150)+sc
210 fori=1to10:o=1064+int(rnd(1)*520):pokeo,46:pokeo+co,1:next
220 poke1154,81:poke1154+co,1
230 print""
240 print"[206][163][163][145][157][216][163][205][205][164][164][206][145][206][145][206][163][163][145][206][145][206][163][163][205][205][205][205][205][164][164][164][164][164][164][164][206][145][206][145][206][205][205][164][164][206][145][206][145][206][163]"
250 print"[206][145][165][145][157][164][206][163][163][145][157][221][163][205][164][157][167][205]"
260 poke1769,87:poke1769+co,4:poke1887,124:poke1887+co,5
270 fori=1890to1887step-1:pokei+1,32:pokei+co+1,0:pokei,124:pokei+co,5
280 forj=1to80:nextj,i
290 j=0:k=0
300 x=20:y=12:th=0:s1=0:a=32:a1=32:a2=32
310 forw=1to3:fori=10to200step10:pokeco+1,i:pokeco+4,33:forj=1to10:nextj,i,w
320 print" "
330 pokeco+4,32
340 s=1524
350 pokes,a
360 p=peek(56320)and15:y=y+((pand1)=0)-((pand2)=0):x=x+((pand4)=0)-((pand8)=0)
370 fr=peek(56320)and16:ifx<0thenx=39
380 ify<0theny=0
390 ifx>39thenx=0
400 ify>24theny=24
410 iflk>1983then610
420 c=c+1:iffr=0thenth=th+1
430 pokelk+co+po,d1:ifa1<>43thenpokelk+po,a1
440 ifbg>6andj<>1thenpokelk+co+po+6,d2:ifa2<>43thenpokelk+po+6,a2
450 iffr=0andth<=7thengosub1030
460 po=int(rnd(1)*d)+1:ifth>7thenfr=1
470 pokeos,32:ns=1064+int(rnd(1)*520):pokens,46:os=ns
480 s=sc+x+y*40
490 a=peek(s):pokes,43:ifc=2thenlk=lk+40:c=0
500 a1=peek(lk+po):d1=peek(lk+po+co)
510 ifbg>6andj<>1thena2=peek(lk+po+6):d2=peek(lk+po+co+6)
520 ifs1<>1thenpokelk+po+co,7:pokelk+po,90
530 a$="shots":ifth=1thena$="shot "
540 print"";:ifs=lk+poandfr=0thenprintth;a$:printright$(ti$,2)v$:goto910
550 ifbg>6andj<>1thenpokelk+po+co+6,7:pokelk+po+6,90
560 ifbg>6andj<>1ands=lk+po+6andfr=0thenprintth;a$:printright$(ti$,2);:gosub860
570 ifpeek(1769)=87thenpoke1769,81:poke1769+co,4:goto590
580 poke1769,87:poke1769+co,4
590 ifj=1ands1=1thenbg=bg+1:goto1040
600 pokesc+qw,32:qw=int(rnd(1)*360)+80:pokesc+qw,46:goto350
610 jh=jh+1:ifjh<3then190
620 pokeco+1,10:pokeco+4,129
630 fori=0to15:forj=0to15:poke53280,i:poke53281,j:nextj,i
640 poke53280,0:poke53281,0
650 pokeco+4,128
660 print"[147][159]you survived"bg-1"attack waves."
670 onbggosub730,740,750,760,770,780,790,800,810,820,830
680 print"[158]play again (y/n)?"
690 geta$:ifa$=""then690
700 ifa$="y"thenrun
710 ifa$="n"thenend
720 goto690
730 print"[156]sorry, private.":return
740 print"[156]not too bad, corporal.":return
750 print"[156]nice going, sergeant.":return
760 print"[156]way to go, second lieutenant.":return
770 print"[156]you are now first lieutenant.":return
780 print"[156]you are now a captain.":return
790 print"[156]you are now a major.":return
800 print"[156]you are now a colonel.":return
810 print"[156]you are now a general.":return
820 print"[156]you are now a field marshall.":return
830 print"[156]hello, mr. president.":return
840 print"[147][158]you saved the earth from alien attack!!"
850 goto 680
860 forf=1to3:forl=150to100step-1:pokeco+1,l:pokeco+4,17:next:next:pokeco+4,16
870 printv$:pokelk+po+co+6,1:pokelk+po+6,43
880 forz=40tolk-scstep40:g=peek(lk+po-z+6):g1=peek(lk+po-z+co+6)
890 pokelk+po-z+co+6,7:pokelk+po-z+6,90:forh=1to70:next:pokelk+po-z+co+6,g1
900 pokelk+po-z+6,g:next:th=0:j=1:return
910 ifbg>6andj<>1thenpokelk+po+co+6,7:pokelk+po+6,90
920 s1=1
930 fort=1to3:forty=100to150:pokeco+1,ty:pokeco+4,17:next:next:pokeco+4,16
940 s1=1:pokelk+po+co,1:th=0:pokelk+po,43
950 forz=40tolk-scstep40:g=peek(lk+po-z):g1=peek(lk+po-z+co)
960 pokelk+po-z+co,7:pokelk+po-z,90:forh=1to70:next:pokelk+po-z+co,g1
970 pokelk+po-z,g:next
980 ifbg<7thenbg=bg+1:goto190
990 ifj=1ands=1thenbg=bg+1:ifbg<12then190
1000 ifj=1ands=1andbg=12then840
1010 goto550
1020 rem fire noise
1030 pokeco+1,200:poke co+4,129:pokeco+4,128:fort=1to100:next:return
1040 ifbg<=11then190
1050 goto840